package com.gxgeek.controller;

import com.gxgeek.dto.req.UserReq;
import com.gxgeek.service.DataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gaoxing
 * @create 2018-06-04 下午3:29
 */
@RestController
@RequestMapping(path = "/data")
public class DataController {

    @Autowired
    DataService dataService;

    @PostMapping("/store-user")
    public void storeUserInfo(@RequestBody UserReq reqDto){
        dataService.storeUserInfo(reqDto);
    }

}
